<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
	<meta name="format-detection" content="telephone=no">
	<title>{$site_seo_title}</title>
	<meta name="keywords" content="{$site_seo_keywords}" />
	<meta name="description" content="{$site_seo_description}" />
	<link rel="shortcut icon" href="favicon.png">
	<base id="headbase" href="__TMPL__/home/" />
    <link rel="stylesheet" href="__STATIC__/bootstrap-4.6.0-dist/css/bootstrap.min.css">
    <link href="./css/style.css" rel="stylesheet">
</head>

<body id="page-top">
	
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
	<div class="container">
		<div class="navbar-header">
            <a class="navbar-brand" href="/">DancePHP</a>
        </div>
		<div class="collapse navbar-collapse">
			<ul class="navbar-nav mr-auto">
				<li class="nav-item active">
					<a class="nav-link" href="{:url('home/index/index')}">首页</a>
				</li>
			</ul>
		</div>
		<div class="d-flex">
			<form class="form-inline" style="display: none">
				<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
				<button class="btn btn-outline-success my-2 my-sm-0" type="submit">搜索</button>
			</form>
            {if condition="!$adminuid"}
            <ul class="navbar-nav">
                <li class="nav-item"><a href="{:url('admin/login/index')}">登录</a></li>
            </ul>
            {else /}
            <ul class="navbar-nav mr-auto my-2 my-lg-0 navbar-nav-scroll">
				<li class="nav-item dropdown">
					<a class="nav-link dropdown-toggle" href="javascript:;" id="navbarDropdown" role="button0" data-toggle="dropdown0" aria-haspopup="true" aria-expanded="false">{$adminInfo['username']}</a>
					<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
						<li><a class="dropdown-item" href="{:url('admin/index/index')}"><i class="fa fa-user fa-fw"></i>后台管理</a></li>
						<li><a class="dropdown-item" href="javascript:;"><i class="fa fa-user fa-fw"></i>会员中心</a></li>
                        <li><a class="dropdown-item" href="{:url('admin/login/logout')}"><i class="fa fa-sign-out fa-fw"></i>退出</a></li>
                    </ul>
				</li>
			</ul>
            {/if}
		</div>
	</div>
</nav>

<div id="myCarousel" class="carousel slide">
	<div class="carousel-inner">
        <div class="item active color1">
            <p>
                <span style="font-size:60px;color:white" class="name">DancePHP</span><br><br>
                <span style="font-size:30px;color:white" class="features">一款开源内容管理框架，让WEB开发更快
                <br><br>
                <a href="https://gitee.com/lianlianzan/dancePHP" target="_blank" class="btn btn-warning btn-lg gradient orange rnd8">下载</a>
                <a href="https://gitee.com/lianlianzan/dancePHP" target="_blank" class="btn btn-success btn-lg" target="_blank">GitHub</a>
                <a href="https://gitee.com/lianlianzan/dancePHP" target="_blank" class="btn btn-danger btn-lg gradient orange rnd8">Gitee</a>
                <br><br>
                <span style="font-size:12px;color:white">
		      	    最新版本:<b>{$version}</b>
		      	</span>
            </p>
        </div>
    </div>
</div>

<footer>
    <div class="container">
        <!-- DancePHP是开源程序，建议在您的网站底部保留一个DancePHP的链接 -->
        <p>&copy; 2019-{:date('Y')} <a href="https://www.dancephp.com" target="_blank">DancePHP</a>. All Rights Reserved.</p>
        <a href="https://beian.miit.gov.cn/">{:config('system.site_icp')}</a>
    </div>
</footer>

<script src="__STATIC__/danceui/js/jquery.min.js"></script>
<script src="__STATIC__/bootstrap-4.6.0-dist/js/bootstrap.bundle.min.js"></script>
<script src="__STATIC__/dancewidgets/twitter-bootstrap-hover-dropdown-master/twitter-bootstrap-hover-dropdown.js"></script>

<script>
$(document).ready(function(){
	dropdownOpen();
});
function dropdownOpen(){
	var $dropdownLi = $('li.dropdown');
	$dropdownLi.mouseover(function(){
		console.log('mouseover')
		$(this).addClass('show');
		$(this).find('.dropdown-menu').addClass('show');
	}).mouseout(function(){
		console.log('mouseout')
		$(this).find('.dropdown-menu').removeClass('show');
		$(this).removeClass('show');
	});
}
	//$('.dropdown-toggle').dropdownHover();
	//$('.dropdown-toggle').dropdown()
    //$(function () {
    //    $(window).on("scroll", function () {
    //        $("#mainNav").toggleClass("affix", $(window).height() - $(window).scrollTop() <= 50);
    //    });
    //});
</script>
</body>
</html>